import request from '@/utils/request'

export function create(data) {
    return request({
        url: '/batch-coupon/create',
        method: 'post',
        data
    })
}
export function updateRules(data) {
    return request({
        url: '/batch-coupon/updateRules',
        method: 'post',
        data
    })
}

export function getById(params) {
    return request({
        url: '/batch-coupon/getById',
        method: 'get',
        params
    })
}

export function push(params) {
    return request({
        url: '/batch-coupon/push',
        method: 'get',
        params
    })
}

export function queryList(data) {
    return request({
        url: '/batch-coupon/queryList',
        method: 'post',
        data
    })
}